
import { _decorator, Component, Node,director,log,v3,Vec3 ,SkeletalAnimation} from 'cc';
import {CLog} from "../../libs/colorlog";
const { ccclass, property } = _decorator;

// @ts-ignore
import {default as R} from 'ramda/dist/ramda.js';

@ccclass('TestSkybox')
export class TestSkybox extends Component {
    // [1]
    // dummy = '';

    // [2]
    // @property
    // serializableDummy = 0;

    @property(SkeletalAnimation)
    anim_fish:SkeletalAnimation = null!

    start () {
        CLog.info('this is info log!',10);
        CLog.warn('this is warn log!');

        R.forEach(console.log,[1,2,3,4]);
    }

    btn_upClicked(){
        CLog.info('btn_upClicked clicked!');
        this.anim_fish.play('anim_up');
    }

    btn_scaleClicked(){
        CLog.info('btn_scaleClicked called!');
        this.anim_fish.play('anim_scale');
    }
}

/**
 * [1] Class member could be defined like this.
 * [2] Use `property` decorator if your want the member to be serializable.
 * [3] Your initialization goes here.
 * [4] Your update function goes here.
 *
 * Learn more about scripting: https://docs.cocos.com/creator/3.0/manual/en/scripting/
 * Learn more about CCClass: https://docs.cocos.com/creator/3.0/manual/en/scripting/ccclass.html
 * Learn more about life-cycle callbacks: https://docs.cocos.com/creator/3.0/manual/en/scripting/life-cycle-callbacks.html
 */
